﻿using Admin.Application.Dto;
using Admin.Database.Model;
using Framework.SqlSugar.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace Admin.Application.DynamicApi.System.Dict.Dto
{
	public class DictDataInput : BaseStatusInput
	{
	}

	public class PageDictDataInput : BasePageInput
	{
		/// <summary>
		/// 字典类型Id
		/// </summary>
		public long DictTypeId { get; set; }

		/// <summary>
		/// 文本
		/// </summary>
		public string Label { get; set; }

		/// <summary>
		/// 编码
		/// </summary>
		public string Code { get; set; }
	}

	public class AddDictDataInput : SysDictData
	{
	}

	public class UpdateDictDataInput : AddDictDataInput
	{
	}

	public class DeleteDictDataInput : BaseIdInput
	{
	}

	public class GetDataDictDataInput
	{
		/// <summary>
		/// 字典类型Id
		/// </summary>
		[Required(ErrorMessage = "字典类型Id不能为空")]
		public long DictTypeId { get; set; }
	}

	public class QueryDictDataInput
	{
		/// <summary>
		/// 字典值
		/// </summary>
		[Required(ErrorMessage = "字典值不能为空")]
		public string Value { get; set; }

		/// <summary>
		/// 状态
		/// </summary>
		public int? Status { get; set; }
	}
}
